package huawei;

import java.util.Scanner;
 
/**
 * Created by wanghongfu 
 */
public class NumberDeco {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        while (sc.hasNext()){
            String s=sc.nextLine();
            char[] str=s.toCharArray();
            StringBuilder output=new StringBuilder();
            if(Character.isDigit(str[0]))
                output.append('*');
            output.append(str[0]);
            for (int i = 1; i <str.length ; i++) {
                if((Character.isLetter(str[i])&&Character.isDigit(str[i-1]))
                        ||((Character.isLetter(str[i-1])&&Character.isDigit(str[i]))))
                    output.append('*');
                output.append(str[i]);
            }
            if(Character.isDigit(str[str.length-1]))
                output.append('*');
            System.out.println(output);
        }
    }
}